// @forward 'element-plus/theme-chalk/src/common/var.scss' with (
//   $colors: (
//     'primary': (
//       'base': green,
//     ),
//   ),
// );

@use "element-plus/theme-chalk/src/index.scss" as *;
@use "@sribd/sc-ui/es/style.css" as *;
:root {
    font-family: "Microsoft YaHei", Avenir, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400px;
    --el-switch-border-color: transparent;
    color: #1b181b;
    --el-color-primary: #a446ca;
}
body {
    margin: 0;
}
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sc-table .el-table {
    --el-table-header-text-color: #1b181b;
    th.el-table__cell.is-leaf {
        background: #f8f8fa;
        font-weight: 500;
    }
    tr:hover,
    .el-table__row.hover-row {
        .primary-button {
            background: rgba(113, 71, 206, 1);
            color: #fff;
        }
        .success-button {
            background: #55ca68;
            color: #fff;
        }
        .warning-button {
            background: rgba(255, 125, 0, 1);
            color: #fff;
        }
        .danger-button {
            background: rgba(239, 79, 96, 1);
            color: #fff;
        }
    }
    .el-button + .el-button {
        margin-left: 8px;
    }
    .cell {
        padding: 0 16px;
    }
}
.el-dialog {
    border-radius: 8px;
    padding: 0;
    .el-dialog__header {
        background: #f8f8fa;
        margin-right: 0;
        border-bottom: 1px solid #e5e6eb;
        border-radius: 8px 8px 0 0;
        padding: 16px 20px;
    }
    .el-dialog__body {
        padding: 20px 30px;
    }
}
// 滚动条样式
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 6px;
    height: 6px;
    background: #f8f8fa;
    padding: 0 2px;
}

// 滚动条轨道
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
    background: #f8f8fa;
    padding: 0 2px;
}

// 滚动条滑块
::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
    background: #d5d4da;
    border-radius: 10px;
}

.is-message-box {
    z-index: 9999 !important;
}

.sc-message {
    z-index: 10000 !important;
}

.el-select__popper.el-popper {
    max-width: 580px;
}

.del-message-box {
    .el-message-box__btns {
        .el-button {
            &:nth-child(2) {
                background: #ef4f60;
                border-color: #ef4f60;
            }
        }
    }
}

.sc-dialog .el-dialog__footer {
    padding: 12px 20px 12px 20px;
}

.page-container {
    // padding: 20px 40px;
}

.default-btn {
    background: #fff;
}
.el-dialog {
    --el-dialog-padding-primary: 0px;
}
.el-dialog__header {
    background: #f4f4f8;
    border-bottom: 1px solid #dadcdf;
    padding: 16px 20px;
    margin-right: 0;
    .el-dialog__title {
        color: #1b1b1b;
    }
}
.el-dialog__body {
    padding: 30px 50px;
}
.el-dialog__footer {
    padding: 12px 20px;
    border-top: 1px solid #dadcdf;
}
.el-dialog {
    border-radius: 6px;
    overflow: hidden;
}

/* 表格样式 */
.action-btn {
    [class*="el-button"] {
        color: #1b181b;
        background-color: #fff;
        border-color: #dadcdf;
        border-radius: 2px;
        height: 28px;
    }
    .el-button + .el-button {
        margin-left: 8px;
    }
}
.el-table__row:hover {
    .action-btn {
        .el-button {
            border: none;
        }
        .el-button--primary {
            color: #fff;
            background-color: rgba(164, 70, 202, 1);
        }
        .el-button--danger {
            color: #fff;
            background-color: #ff6475;
        }
        .el-button--info {
            color: #fff;
            background-color: rgba(78, 131, 253, 1);
        }
        .el-button--warning {
            color: #fff;
            background-color: rgba(248, 198, 47, 1);
        }
        .el-button--success {
            color: #fff;
            background-color: #2cd087;
        }
    }
}

.el-table {
    th.el-table__cell.is-leaf {
        background: #f4f4f8;
        color: rgba(27, 24, 27, 0.7);
        padding: 11px 4px;
        border-bottom: none;
    }

    td.el-table__cell {
        border: none;
        box-shadow: inset 0px -1px 0px 0px #dadcdf;
    }

    .el-table__cell {
        padding: 10px 4px;
    }

    .cell {
        line-height: 27px;
    }

    .sc-button {
        height: 28px;
        background: #fff;
        border-radius: 2px;
    }

    .el-popper {
        max-width: 300px;
    }
}

.pagination {
    justify-content: flex-end;
    margin: 20px 0;

    &.el-pagination button {
        height: 28px;
    }

    &.sc-pagination .el-pager li {
        min-width: 28px;
        height: 28px;
    }

    &.sc-pagination .el-pager li.is-active {
        background: #f8f8fa;
        border-radius: 4px;
        border: 1px solid #e5e6eb;
        opacity: 1;
        color: #1b181b;
    }

    .number {
        color: #1b181b;
        opacity: 0.7;
    }

    &.el-pagination .el-select {
        width: 100px;

        .el-input {
            width: 100%;
            height: 28px;
        }
    }

    .el-pagination__jump {
        .el-input {
            height: 28px;
            line-height: 28px;
        }
    }
}

.sc-button .sc-icon {
    margin-right: 8px;
}
.file-name {
    display: flex;
    align-items: center;
    :deep(.svg-icon) {
        margin-right: 8px;
    }
    &.folder {
        cursor: pointer;
    }
    &.folder:hover {
        color: #a446ca;
    }
}
